<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
        <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
        <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
               $(function(){
                   $("#submitBtn").click(function(){
                       var username = $("#username").val();
                       var password = $("#password").val();
                       if(username == "admin" && password == "123456"){
                           window.location.href  = "/index";
                       } else {
                           alter("登录失败");
                       }
                   });
               })
            });
        </script>
    </head>

    <body style=" background: url(http://global.bing.com/az/hprichbg/rb/RavenWolf_EN-US4433795745_1920x1080.jpg) no-repeat center center fixed; background-size: 100%;">
    <!--<body style="background-size: 100%;">-->
        <div class="modal-dialog" style="margin-top: 10%;">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title text-center" id="myModalLabel">Sky搜索系统</h4>
                </div>
                <div class="modal-body" id = "model-body">
                    <div class="form-group">
                        <input type="text" id="username"  class="form-control"placeholder="用户名" autocomplete="off">
                    </div>
                    <div class="form-group">
                        <input type="password"  id="password" class="form-control" placeholder="密码" autocomplete="off">
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="form-group">
                        <button type="button" id="submitBtn" class="btn btn-primary form-control">登录</button>
                    </div>
                    <div class="form-group">
                        <button type="button" id="registerBtn" class="btn btn-default form-control">注册</button>
                    </div>

                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->

    </body>
</html>
